package com.example.mongodb.controller.抽象工厂模式;

/**
 * 工厂类
 * @author zxb
 * @version 1.0
 * @date 2025-03-31 17:51
 */
public class XiaoMiFactoryImpl4 implements IphoneProduct3 {


    @Override
    public Iphone1 iphone() {
        // 父类接收子类对象
        Iphone1 xiaoMiPhone2 = new XiaoMiPhone2();
        return xiaoMiPhone2;
    }
}
